<!DOCTYPE html>

<html>
<head>

    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit" />
    <title>共享型专业教学资源库云综合平台</title>
    <link href="/Scripts/layui/css/layui.css" rel="stylesheet" />
    <link href="/Scripts/zyFileUpdate/css/mt-imageview.css" rel="stylesheet" />
    <script src="/Scripts/zyFileUpdate/js/h-imagevert.js"></script>
    <script src="/Scripts/zyFileUpdate/js/mt-imageview.js"></script>
    <link href="/Content/DefaultIndexcss?v=Drhbz0njysh2iqqNi28x3kBmx-rgrigbuR1tUkUJBjA1" rel="stylesheet"/>

    <script src="/bundles/DefaultIndexjs?v=nGhnK2psPx1TA__DKl-55svc6k9sFdHHiAnWGzY8EUY1"></script>

    <script src="/Scripts/hanmmer/hammer.min.js"></script>
    <script src="/Scripts/hanmmer/jquery.hammer.js"></script>
    <script src="/Scripts/hanmmer/GCXY_hanmmerJS.js"></script>
    <script src="/Scripts/hanmmer/jquery.mousewheel.min.js"></script>
    <style>
        .kjcd {
            position: relative;
            width: 92px;
            text-align: center;
            background-color: #448aed;
            top: -4.5%;
            left: 1.25%;
            border: 1px solid #3270f5;
            border-top: none;
            display: none;
            border-radius: 6%;
        }

            .kjcd div {
                margin-top: 10px;
                font-size: 17px;
                color: white;
                cursor: pointer;
            }

                .kjcd div:hover {
                    background-color: white;
                    color: #448aed;
                }
    </style>

</head>
<body style="overflow-x:hidden; overflow-y:hidden">
    <div id="ajax-loader" style="cursor: progress; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; background: #fff; z-index: 100000; overflow: hidden;">
        <img src="/Content/img/ajax-loader.gif" style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto;" />
    </div>
    <div class="top">
        <div class="logo">
            共享型专业教学资源库云综合平台
        </div>
        <div class="top_r">
            
            <span>用户名:犹鹏</span>
            <div class="top_r_bt" style=" width:250px;">
                <a href="#" class="xx_bt" title="消息中心"><div style="margin-left:40px;" class="layui-badge-dot"></div></a>
                <span>|</span>
                <a href="/Default/DownloadFileHelp" class="bz_bt" title="帮助手册"></a>
                <span>|</span>
                <a href="#" class="xgmm_bt" title="密码修改"></a>
                <span>|</span>
                
                
                
                 <a href="/Common/End" class="tc_bt" title="退出"></a>


            </div>
            
            
        </div>
        <div class="xy_list">

            <div>
                <span>|</span>
                <a href="javascript:;" id="mis">快捷菜单</a>
            </div>
                    <span>|</span>
                            <a href="http://jx.cqgmy.cn:7125/api/sso.ashx?appid=b842926c79cdeb2a7a59829c95cc3f49&amp;user=2005010218&amp;domain=http://jx.cqgmy.cn/&amp;action=login&amp;return=json&amp;goto=http://jx.cqgmy.cn:7125/" title="慕课" target="_blank">慕课</a>
                    <span>|</span>
                            <a href="http://10.4.0.3" title="虚拟实训" target="_blank">虚拟实训</a>
        </div>
    </div>

    <input type="hidden" id="dkou" value=":7123" />
    <input type="hidden" id="UCode" value="犹鹏" />

    <div id="maindiv" style="width:100%;position:absolute;top:37px;bottom:0px;padding:0;margin:0;">
        <div style="width:292px;height:100%;float:left;">
            <iframe name="leftmenu" src="/Default/FileMenu" id="leftmenu" height="95%" width="95%" frameborder="0" scrolling="auto"></iframe>
            <div style="height:100%;width:5%;background:#f2f2f2;float:right;cursor:pointer;border:1px solid #999;overflow:hidden;line-height:700px;" type="zk" title="收起" onclick="munCkc(this)">
                <img src="/Scripts/css/img/z.png" alt="收起" title="收起" width="150%" />
            </div>
        </div>

        <div style="position:absolute;left:310px;right:0px;height:100%;">
            <iframe name="mainmc" src="/Default/Right?FID=" id="mainmc" height="100%" width="100%" frameborder="0" scrolling="no"></iframe>
        </div>
    </div>

    <form class="layui-form" action="" id="mmxg" style="display:none">
	<div class="layui-form-item" style="width:95%; margin-top:10px;">
		<label class="layui-form-label">原密码：</label>
		<div class="layui-input-block">
			<input type="password" id="ymm" name="title" required lay-verify="required" placeholder="请输入原密码" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item" style="width:95%; margin-top:10px;">
		<label class="layui-form-label">新密码：</label>
		<div class="layui-input-block">
			<input type="password" id="xmm" name="title" required lay-verify="required" placeholder="请输入新密码（基本格式：包含大小写字母和数字）" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item" style="width:95%; margin-top:10px;">
		<label class="layui-form-label">密码确认：</label>
		<div class="layui-input-block">
			<input type="password" id="xmmtwo" name="title" required lay-verify="required" placeholder="请再次输入新密码（基本格式：包含大小写字母和数字）" autocomplete="off" class="layui-input">
		</div>
	</div>
</form>


<form class="layui-form" action="" id="message" style="display:none">
    <input type="hidden" value="97ba4de4-f557-44f2-93e2-77149e164156" id="sesUID" />
    <input type="hidden" value="犹鹏" id="sesUName" />
	<div style=" width:100%; margin-top:10px; float:left" id="topmessage">
		<div class="btn-group" id="first">
			<button type="button" id="wd" class="btn btn-default active " data_value="0">未读</button>
			<div class="btn-group">
				<button type="button" class="btn btn-default dropdown-toggle " data-toggle="dropdown" data_value="1">
					已读
					<span class="caret"></span>
				</button>
				<ul class="dropdown-menu">
					<li><a href="javascript:;" data_value="1">通知公告</a></li>
					
					<li><a href="javascript:;" data_value="2">系统消息</a></li>
					<li><a href="javascript:;" data_value="5">申请通知</a></li>
				</ul>
			</div>
		</div>

	</div>
	<div class="listidv" style="width: 100%; overflow-y: auto; overflow-x: hidden;">
		<table class="layui-table" lay-even>
			<thead>
				<tr>
					<th>序号&nbsp;</th>
					<th width="40%">内容</th>
					<th>发布时间</th>
					<th>消息类型</th>
					<th>发布人</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody></tbody>
		</table>
	</div>
	<div style="width:100%;float:left;text-align:center;">
		<div id="pageidv"></div>
	</div>
</form>

<form class="layui-form" action="" id="NesFb" style="display:none">
	<table style="width:100%;">
		<tr>
			<td width="10%" align="right"><label class="" style="margin-top:15px">发布内容：</label></td>
			<td width="90%" align="left"><textarea name="Text" id="FabuMessage" style="width: 95%; height:250px; margin-top: 15px; " placeholder="" class="layui-textarea"></textarea></td>
		</tr>
		<tr style="height:20px;"><td colspan="2"></td> </tr>
		<tr>
			<td width="20%" align="right"><label class="" style="margin-top:15px">发布对象：</label></td>
			<td width="80%" align="left">
				<button class="btn btn-default NewDX" type="button">
					选择对象
				</button>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<div class="sq_xz" id="selecl"></div>
			</td>
		</tr>
	</table>

</form>


<form class="layui-form" action="" id="box" style="display:none">

	<table style="width:100%;">
		<tr>
			<td width="20%" align="right"><label class="" style="margin-top:15px">类型：</label></td>
			<td width="80%" align="left"><label style="margin-top:15px" class="span" id="leix"></label></td>
		</tr>
		<tr>
			<td width="10%" align="right"><label class="" style="margin-top:15px">发布时间：</label></td>
			<td width="90%" align="left"><label style="margin-top:15px" class="span" id="data"></label></td>
		</tr>
		<tr>
			<td width="10%" align="right"><label class="" style="margin-top:15px">发布人：</label></td>
			<td width="90%" align="left"><label style="margin-top:15px" class="span" id="person"></label></td>
		</tr>
		<tr>
			<td width="10%" align="right"><label class="" style="margin-top:15px">发布内容：</label></td>
			<td width="90%" align="left"><textarea name="Text" id="Text" style="width: 95%; margin-top: 15px" placeholder="" class="layui-textarea" readonly="readonly"></textarea></td>
		</tr>
	</table>

</form>

<span id="Vidio" style="display:none;">
	layer.open({
	id:id,
	move:".headervodeo",
	title:"",
	type: 1,
	closeBtn: 0,
	shade: 0,
	zIndex:zindex,
	resize: true,
	skin: 'vodioback',
	maxmin: false,
	area: ['1000px', '450px'],
	shadeClose: false,
	content:html
	});
</span>

<div class="yj" id="d1" style="display:none;">
	<ul>
		<li><a href="javascript:void(0);" class="CloseOther">关闭其他</a></li>
		<li><a href="javascript:void(0);" class="Close">关闭</a></li>
	</ul>
</div>
<div class="task-tab" style="bottom: 0px;">
	<div class="tabs">

	</div>
</div>
<span id="span"></span>


<div class="video_1" id="a1" style="display:none"> </div>
<div id="body" class="alert" style=" "></div>
<div>
	<ul class="images" id="imgWin" style="display:none;"></ul>
</div>
<object classid="CLSID:6E591306-0986-4C00-AE3E-E7E03371A41C" id="abc" width="0" height="0"></object>

<input type="hidden" id="index" value="0" />
<input type="hidden" id="text" value="0" />
<input type="hidden" id="pid" value="0" />
<input type="hidden" id="cj" value="0" />
<input type="hidden" id="wid" />
<input type="hidden" id="hei" />
<input type="hidden" id="zindex" value="300" />
<input type="hidden" id="VideoFid" value="" />

    <div class="kjcd">
    </div>

    
    <form class="layui-form" action="" id="zymessage" style="display:none">
        <div class="layui-form-item" style="width:95%; margin-top:10px;">
            <label class="layui-form-label">得分：</label>
            <div class="layui-input-block">
                <input type="text" id="Fen" name="Fen" placeholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" style="width:95%; margin-top:10px;">
            <label class="layui-form-label">评语：</label>
            <div class="layui-input-block">
                <input type="text" id="Ping" name="Ping" placeholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
    </form>

</body>

</html>
<script src="/Scripts/layui/layui.js"></script>
<script src="/Scripts/layui/layui.all.js"></script>
<script src="/Scripts/swfobject/swfobject.js"></script>
<script src="/bundles/Down?v=h5lkBqbwldwdUzeIqsXABF0m8yEksOr37FI_kk2-Fb01"></script>

<script src="/bundles/DefaultIndexGcxy?v=E43oX268XQLhoTzs3i1N8N_1jaNJSaD7hAEVI_R5CJk1"></script>

<style>
    .hammimg {
        display: none;
        border: none !important;
        width: auto !important;
        height: auto !important;
        margin: 0px !important;
        position: absolute;
        background-color: #807b7b !important;
    }

        .hammimg img {
            margin: 0px !important;
            max-width: 500px;
        }

            .hammimg img:hover {
                margin: 0px !important;
                padding: 0px;
                border: none;
            }

        .hammimg:hover {
            border: none;
            margin: 0px !important;
            padding: 0px;
            background-color: #807b7b !important;
        }

    .closeimg {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 3%;
    }
</style>

<script>
    function munCkc(e) {
        var fw = $('#leftmenu').width();

        if ($(e).attr('type') == "zk") {
            $('#leftmenu').css('display', 'none');
            $(e).css('float', 'left');
            $(e).parent().next().css('left', $(e).width() + 10);
            $(e).children().attr({

                'src': '/Scripts/css/img/y.png',
                'alt': "展开",
                'title': "展开"

            })
            $(e).attr({
                'type': 'sq',
                'title': "展开"
            });
        } else {

            $('#leftmenu').css('display', '');
            $(e).css('float', 'right');
            $(e).parent().next().css('left', '310px');

            $(e).children().attr({

                'src': '/Scripts/css/img/z.png',
                'alt': "收起",
                'title': "收起"

            })
            $(e).attr({
                'type': 'zk',
                'title': "收起"
            });
        }
    }

    function tcxt()
    {
        $.ajax({
            type: "POST",
            url: "/Common/movePeoOnline",
            dataType: "json",          
            success: function (data) {

            }
        })
        window.location.href = "/Common/Login";
    }

    //密码安全检测
    function SafeMM() {
        $("#ajax-loader").hide();
        layer.confirm('检测到该用户密码安全强度过低，请立即修改密码！', {
            btn: ['立即修改', '暂不修改'],// closeBtn: 0
        }, function () {
            layer.open({
                type: 1,
                area: ['500px', '300px'],
                shade: 0.3,
                title: "密码修改",
                resize: false,
                skin: 'yourclass',
                content: $('#mmxg'),
                closeBtn: 0,
                btn: ['提交', '取消'],
                end: function () {
                    $("#mmxg").css({ "display": "none" });
                },
                yes: function (index, layero) {
                    var ymm = $("#ymm").val();
                    var xmm = $("#xmm").val();
                    var xmmtwo = $("#xmmtwo").val();
                    if (ymm == "" || xmm == "" || xmmtwo == "" || ymm == null || xmm == null || xmmtwo == null) {
                        layer.msg("请完善所有信息！");
                    }
                    else {
                        if (xmm != xmmtwo) {
                            layer.msg("两次密码输入不一致！");
                        }
                        else {
                            var re = /^(?=.*?[a-z])(?=.*?[A-Z])(?=.*?\d).*$/; //判断密码是否含大小写字母+数字组合  /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,12}$/
                            if (re.test(xmm) && xmm.length >= 6) {
                                $.ajax({
                                    type: "POST",
                                    url: "/Default/UpPwd",
                                    data: { ymm: ymm, xmm: xmm, sj: Math.random() },
                                    dataType: "text",
                                    success: function (result) {
                                         if (result == "ok" || result == "oknull") {
                                            layer.alert("密码修改成功!", {
                                                icon: 1, resize: false, end: function () {
                                                    layer.msg('密码改动，正在跳转登录页面...', {
                                                        time: 1000, //1s后自动关闭
                                                        end: function () {
                                                            window.location.href = "/Common/Login";
                                                        }
                                                    });

                                                }
                                            });
                                        }
                                        else { layer.msg(result); }

                                    }
                                });
                            }
                            else {
                                layer.msg("密码强度过低，请使用包含大小写字母和数字，长度至少为（6）位数格式进行修改！");
                            }

                        }
                    }

                }
            });
        });
    }


    $(document).ready(function () {
        $('#mis').hover(function () {
            $('.kjcd').css('display', 'block');
        }, function () {
            $('.kjcd').css('display', 'none');
        });
        $('.kjcd').hover(function () {
            $('.kjcd').css('display', 'block');
        }, function () {
            $('.kjcd').css('display', 'none');
        });

        if ("0" == "0") {
            setTimeout(function () {
                SafeMM();
            }, 2000)
        }
    });
    var zid = "", fen = "", ping = "";
    function UpCallback(data) {
        if (zid == "") return layer.msg("数据传输异常！");
        if (fen != "--") {
            $("#Fen").val(fen)
            $("#Ping").val(ping)
        }
        else {
            $("#Fen").val("")
            $("#Ping").val("")
        }
        layer.open({
            type: 1,
            area: ['600px', '300px'],
            shade: 0.3,
            title: "作业点评",
            resize: false,
            skin: 'yourclass',
            content: $('#zymessage'),
            btn: ['确定', '取消'],
            end: function () {
                $("#zymessage").css({ "display": "none" });
            },
            success: function () {
            },
            yes: function (index, layero) {
                var Fen = $("#Fen").val();
                var Ping = $("#Ping").val();
                if (Fen == "") {
                    layer.msg("得分不能为空");
                    return false;
                }
                var layboxindex;
                $.ajax({
                    type: "POST",
                    url: "/ZY/AdddpAndImage",
                    data: { ID: zid, Fen: Fen, Ping: Ping, img: (JSON.stringify(data)) },
                    dataType: "json",
                    beforeSend: function () {
                        layboxindex = layer.load(2);
                    },
                    complete: function () {
                        layer.close(layboxindex);
                    },
                    success: function (data) {
                        if (data.code == "1") {
                            layer.msg('点评成功！', {
                                time: 500, end: function () {
                                    layer.close(index);
                                    CloseCanview();
                                    displaydiv('block');
                                    $('.layui-layer-iframe').find('iframe')[0].contentWindow.loadData();
                                }
                            });
                        }
                        else {
                            layer.msg(data.msg, {});
                        }
                    },
                    error: function () {
                        //layer.msg("点评成功");
                        //layer.close(index);
                        //CloseCanview();
                        //displaydiv('block');
                        //$('.layui-layer-iframe').find('iframe')[0].contentWindow.loadData();
                    }
                })
            }

        })
    }
    function displaydiv(t) {
        $('.layui-layer-shade').css('display', t);
        $('.layui-layer-iframe').css('display', t);
    }
</script>



<script>

    var prop = new PropHanmer($('.hammimg'), CloseDh);
    function SetElem(el) {
        if ($('#' + $(el).attr('id')).length < 1)
            el = $(el).clone();
        else
        {
            el = $('#' +$(el).attr('id'));
            if ($(el).children('.imgFile').css('display') == "none") {
                el[0].style = "";
                $(el).children('.imgFile').css('display', 'block');
            }
        }
        el.children('.imgFile').on('error', function () {
            $(this).parent().css('cssText', 'height:150px !important;width:150px !important;display:block');
            $(this).next().css('cssText', 'width:10% !important');
            SetImagePost(el);
        })
        if ($('#' + el.attr('id')).length < 1)
            $(el).appendTo($('body'));
        el = el[0];
        SetImagePost(el);
        prop.Setel(el);
    }
    $(document).ready(function () {

        document.onmousemove = function () {
            CleraEvent(event);
        }
        document.onmouseover = function () {
            CleraEvent(event);
        }
        document.onmouseup = function () {
            CleraEvent(event);
        }
    })
    function CleraEvent(e) {
        //阻止默认浏览器动作(W3C) 
        if (e && e.preventDefault) {
            e.preventDefault();
        }
        //IE中阻止函数器默认动作的方式 
        else
            window.event.returnValue = false;
        if (e.stopPropagation)
            e.stopPropagation();
        e.cancelBubble = true;
        return false;
    }
    $('body').on('click', '.closeimg', function () {
        $(this).parent().remove();
        event.stopPropagation();
    })
    function SetImagePost(img) {
        var t1 = $(window).height(); //获取屏幕高度
        var t2 = $(window).width();  //获取屏幕宽度
        var t3 = $(img).height();
        var t4 = $(img).width();
        var x = ((t1 - t3) / 2);
        var y = ((t2 - t4) / 2)
        $(img).css({
            "top": x + "px",
            "left": y + "px",
            "position": "fixed",
            "display": "block"
        });
    }
    function CloseDh(el) {
        //console.log(el);
    }
</script>
